﻿using System.Collections.Generic;
using System.Net.Http;

namespace NC.Service.CatchManager
{
    public interface ICatchService : IService
    {
        /// <summary>
        /// 获取UrlList容器
        /// </summary>
        /// <param name="url">网站地址</param>
        /// <param name="contentSelector">内容样式选择器</param>
        /// <param name="method">HttpMethod</param>
        /// <returns>结果Html</returns>
        string GetListContainer(string url, string contentSelector, HttpMethod method);


        string GetListATags(string url, string contentSelctor, string aSelector, HttpMethod method);



        string GetATagsByAccessToken(string accessToken);

        string GetNewsContentByAccessToken(string accessToken, string url);



        #region Api
        /// <summary>
        /// 获取某网站列表模块的a标签列表
        /// </summary>
        /// <param name="listId">列表</param>
        /// <returns>a标签集合</returns>
        List<string> GetTargetListTags(int listId);



        #endregion

    }
}
